package com.blog.back.service.impl;

import com.blog.utils.PageUtils;
import com.blog.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blog.back.dao.RCommentArticleDao;
import com.blog.entity.RCommentArticleEntity;
import com.blog.back.service.RCommentArticleService;


@Service("rCommentArticleService")
public class RCommentArticleServiceImpl extends ServiceImpl<RCommentArticleDao, RCommentArticleEntity> implements RCommentArticleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RCommentArticleEntity> page = this.page(
                new Query<RCommentArticleEntity>().getPage(params),
                new QueryWrapper<RCommentArticleEntity>()
        );

        return new PageUtils(page);
    }

}